Skip to content

[3.14] gh-69134: Harden tkinter GUI tests that depend on a mapped widget (GH-152499)#152517

Merged
serhiy-storchaka merged 1 commit into
python:3.14from
miss-islington:backport-0fff6bd-3.14
Jun 28, 2026
Merged

[3.14] gh-69134: Harden tkinter GUI tests that depend on a mapped widget (GH-152499)#152517
serhiy-storchaka merged 1 commit into
python:3.14from
miss-islington:backport-0fff6bd-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Add wait_until_mapped() and AbstractTkTest.require_mapped() to
test_tkinter.support and use them to guard the assertions that need a
widget to be actually mapped (winfo_width(), identify(), coords(), ...).
This avoids intermittent failures under window managers that do not map
the widget promptly, without skipping the unrelated checks.
(cherry picked from commit 0fff6bd)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Opus 4.8 noreply@anthropic.com

…et (pythonGH-152499)

Add wait_until_mapped() and AbstractTkTest.require_mapped() to
test_tkinter.support and use them to guard the assertions that need a
widget to be actually mapped (winfo_width(), identify(), coords(), ...).
This avoids intermittent failures under window managers that do not map
the widget promptly, without skipping the unrelated checks.
(cherry picked from commit 0fff6bd)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) June 28, 2026 17:20
@serhiy-storchaka serhiy-storchaka merged commit 7d6fc2b into python:3.14 Jun 28, 2026
49 checks passed
@miss-islington miss-islington deleted the backport-0fff6bd-3.14 branch June 28, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants